<div class="clearfix"></div>
<br>
{% if question.type == 'fill' %}
<div class="panel panel-default" style="display:none">

	<div class="panel-body">
		{{'正确答案：%answer%'|trans({'%answer%':question.answer|join(', ')})}}
		<br>
		{% if question.analysis != '' %}{{'解析：%analysis%'|trans({'%analysis%':question.analysis})}}{% endif %}
	</div>

</div>
{% endif %}

{% if question.type in ['single_choice', 'choice'] %}

<div class="panel panel-default" style="display:none">
	{% set keys = [] %}
	{% set keys_answer = [] %}
	<div class="panel-body">
		<ul class="list-unstyled">
			{% for key, choice in question.choices %}
				<li>{{ choice.choiceIndex }}. {{ choice.content }}</li>

				{% if key in question.answer %}
					{% set keys = keys|merge([choice.choiceIndex]) %}
				{% endif  %}
				{% if key in question.testResult.answer|default([]) %}
					{% set keys_answer = keys_answer|merge([choice.choiceIndex]) %}
				{% endif %}

			{% endfor %}
		</ul>

		{{'正确答案：%keys%'|trans({'%keys%':keys|join(',')})}}
		<br>
		{% if question.analysis != '' %}{{'解析：%analysis%'|trans({'%analysis%':question.analysis})}} {% endif %}
	</div>

</div>

{% endif %}

{% if question.type == 'determine' %}
<div class="panel panel-default" style="display:none">

	<div class="panel-body">
		{{'正确答案：'|trans}}{% if question.answer[0] == 1 %} {{'正确'|trans}} {% else %} {{'错误'|trans}} {% endif %}
		<br>
		{% if question.analysis != '' %}{{'解析：%analysis%'|trans({'%analysis%':question.analysis})}}{% endif %}
	</div>

</div>
{% endif %}

{% if question.type == 'essay' %}
<div class="panel panel-default" style="display:none">

	<div class="panel-body">
		{{'正确答案：%answer%'|trans({'%answer%':question.answer[0]})}}
		<br>
		{% if question.analysis != '' %}{{'解析：%analysis%'|trans({'%analysis%':question.analysis})}}{% endif %}
	</div>

</div>
{% endif %}